<template>
<div class="introduce-detail-wrap introduce-detail">
   <div class="introduce-detail-content">
          <h3 class="title-wrap">
            <strong class="title">{{dynamicDetail.title}}</strong>
          </h3>
          <div class="introduce-text" v-html="dynamicDetail.content">
          </div>
   </div>
</div>

</template>

<script>
    import jskit from "../../assets/jskit";
    import {DYNAMIC_DETAIL} from '../../api';

    export default {
        data(){
            return{
                  dynamicDetail:{},
                  dynamicid:this.$route.params.dynamicId
            }
        },
        methods:{
            getDynamicDetail(){
                  this.$http.get({
                      url:DYNAMIC_DETAIL,
                      data:{
                          dynamic_id:this.dynamicid
                      }
                  }).then((response)=>{
                      var result = response.data;
                      if (result.code === '0') {
                          this.dynamicDetail = result.data;
                      }
                      else{
                          this.$toast.show(result.message)
                      }
                  })
            }
        },
        ready(){
            this.getDynamicDetail();
        },
        components:{

        }
    }
</script>
<style lang="sass">
     @import "../../sass/introduce.scss";
</style>
